const dayjs = require("dayjs")
const mongoose = require("../../../db/db")


const Schema = mongoose.Schema({
    id: {
        type: String,
    },
    createDate: {
        type: Number,
        default: dayjs()
    },

    title: {
        type: String,
        require: true,
    },
    recommend: {
        type: String,
    },
    imgUrl: {
        type: String
    },
    target: {
        type: Number,
    },
})

/**
 * @description 专题分类模型
 */
// const model = mongoose.model("subject", Schema)
const model = mongoose.model("MAIN_TAB_SUBJECT", Schema)
module.exports = model

